<?php
/**
 * Created by JetBrains PhpStorm.
 * User: scala
 * Date: 12-10-27
 * Time: 上午12:44
 * To change this template use File | Settings | File Templates.
 */
class SuccessCaseModel extends Model
{
    protected $_validate=array(
        array('casetypeid','require','没有选择案例类型！'),
        array('casetypeid','checkNewsType','！请选择案例类型',Model::MUST_VALIDATE,"callback",Model::MODEL_BOTH),
        array('casetitle','require','请输入文章标题！'),
        array('casedes','require','请输入文章索引！'),
    );


    function checkNewsType($data){
        if(trim($data)==-1){
            return false;
        }else{
            return true;
        }
    }




}
